package com.lottery.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lottery.entity.LotteryWinner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface LotteryWinnerMapper extends BaseMapper<LotteryWinner> {
    
    /**
     * 更新领奖状态
     */
    @Update("UPDATE lottery_winner SET prize_status = #{status} " +
            "WHERE winner_id = #{winnerId}")
    int updatePrizeStatus(Long winnerId, Integer status);
} 